package com.jinwei.qunguanjia.common.utils;

import com.baomidou.mybatisplus.core.toolkit.IdWorker;

/**
 * id工具类
 * @author yuanzs
 * 2020/12/10 15:50
 */
public class IdUtils {
    /**
     * 获取主键id
     *
     */
    public static String getWorkerId() {
        return IdWorker.getIdStr();
    }
    public static void main(String [] args){
    	for (int i = 0; i < 10000; i++) {
    		System.out.println(getWorkerId());
		} 	
    }
}